package com.door.erp.pager;

public class Pager {
	
	/** 数据总记录数 */
    private int totalCount;

    /** 每页多少行，默认20行 */
    private int numPerPage = 20;

    /** 当前页，默认当前页是第一页*/
    private int currentPage = 1;
    
    private int pageNum = 1;
    
    public Pager() {}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public int getNumPerPage() {
		return numPerPage;
	}

	public void setNumPerPage(int numPerPage) {
		this.numPerPage = numPerPage;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getPageNum() {
		return pageNum;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}
 
	public int getStartRow() {
		return (this.pageNum-1) * this.numPerPage;
	}
}
